STEP 12: Let's add the value of our two rolls together to get a total.

We'll use a variable named total_roll to store the sum, or total, of our two rolls.

  • In LOGIC, go to and drag in Addition to the bottom of your program.
  • Change the variable name from my_var to total_roll.
  • Change the first number from 2 to roll_1 and the second number from 3 to roll_2.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)